package com.kgcx.order.mapper;

import com.kgcx.dbutils.utils.CommonMapper;
import com.kgcx.order.domain.Order;
import com.kgcx.order.entity.HotAddress;
import com.kgcx.order.vo.DriverPayingOrder;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;


public interface OrderMapper extends CommonMapper<Order> {

    Integer getUnpayOrderCount(@Param("driver_id") Long driver_id, @Param("time_type") Integer time_type);

    List<DriverPayingOrder> queryDriverPayingOrder(@Param("driver_id") Long driver_id);

    BigDecimal queryPaiedOrderAmount(@Param("user_id") Long user_id);

    List<String> queryPaiedOrderList(@Param("user_id") Long user_id);

    List<HashMap<Long, Object>> queryUserTotalMileage(@Param("userIds") List<Long> userIds);

    List<HashMap<Long, Object>> queryUserMonthlyMileage(@Param("userIds") List<Long> userIds);

    List<HotAddress> getHotAddress(@Param("cityId") Long cityId);

    List<Long> getHotCity(@Param("cityId") Long cityId);

}